package cc.xuanhaojituan.mongodb.service.impl;

import cc.xuanhaojituan.mongodb.dao.UserDao;
import cc.xuanhaojituan.mongodb.model.User;
import cc.xuanhaojituan.mongodb.service.UserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * @author chenli
 * @create 2017-09-15
 */
@Service
public class UserServiceImpl implements UserService {

    @Autowired
    private UserDao userDao;

    @Override
    public User save(User user) {
        return userDao.save(user);
    }
}